import Vue from "vue";
import Router from "vue-router";
import Login from "./views/login/Login.vue";
import pwd_login from "./views/login/pwd_login.vue";
import register from "./views/login/register.vue";
import forget from "./views/login/forget.vue";
import c_power from "./views/c_power/c_power.vue";
import power_order from "./views/c_power/power_order.vue";
import power_detail from "./views/c_power/power_detail.vue";
import order_detail from "./views/order/order_detail.vue";
import myorder from "./views/order/myorder.vue";
import income from "./views/c_power/income.vue";
import c_income from "./views/c_power/c_income.vue";
import agreement from "./views/c_power/agreement.vue";
import transfer from "./views/order/transfer.vue";
import out from "./views/order/out.vue";
import record from "./views/order/record.vue";
import currency from "./views/order/currency.vue";
import hosting from "./views/kj/hosting.vue";
import bill from "./views/order/bill.vue";

Vue.use(Router);

export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      name: "login",
      component: Login
    },
    {
      path: "/pwd_login",
      name: "pwd_login",
      component: pwd_login
    },
    {
      path: "/forget",
      name: "forget",
      component: forget
    },
    {
      path: "/register",
      name: "register",
      component: register
    },
    {
      path: "/index",
      name: "index",
      component: () =>
        import("./views/c_power/c_power.vue")
    },
    {
      path: "/power_order",
      name: "power_order",
      component: () =>
        import("./views/c_power/power_order.vue")
    },
    {
      path: "/power_detail",
      name: "power_detail",
      component: () =>
        import("./views/c_power/power_detail.vue")
    },
    {
      path: "/agreement",
      name: "agreement",
      component: () =>
        import("./views/c_power/agreement.vue")
    },
    {
      path: "/order_detail",
      name: "order_detail",
      component: () =>
        import("./views/order/order_detail.vue")
    },
    {
      path: "/myorder",
      name: "myorder",
      component: () =>
        import("./views/order/myorder.vue")
    },
    {
      path: "/income",
      name: "income",
      component: () =>
        import("./views/c_power/income.vue")
    },
    {
      path: "/c_income",
      name: "c_income",
      component: () =>
        import("./views/c_power/c_income.vue")
    },
    {
      path: "/transfer",
      name: "transfer",
      component: () =>
        import("./views/order/transfer.vue")
    },
    {
      path: "/out",
      name: "out",
      component: () =>
        import("./views/order/out.vue")
    },
    {
      path: "/record",
      name: "record",
      component: () =>
        import("./views/order/record.vue")
    },
    {
      path: "/currency",
      name: "currency",
      component: () =>
        import("./views/order/currency.vue")
    },
    {
      path: "/hosting",
      name: "hosting",
      component: () =>
        import("./views/kj/hosting.vue")
    },
    {
      path: "/bill",
      name: "bill",
      component: () =>
        import("./views/order/bill.vue")
    },
  ]
});
